#pragma once

namespace Kiran
{

#define FEATURE_LENGTH 1024

#define FP_ARATEK_DRIVER_LIB "libAraTrustFinger.so"
#define FP_ARATEK_MEGER_TEMPLATE_COUNT 3

#define ENROLL_CNT 3
#define IMAGEQUALITY_THRESHOLD 45
#define ENROLL_RETRYCNT 100

#define IMAGEQUALITY_BAD_CODE 3

enum
{
    GEN_SUCCEDED = 0,     // Succeed
    GEN_PARAM_NULL = 10,  // 参数内存分配为空
    GEN_PAR_ERR = -900,   // Wrong parameter(s)
    // GEN_MEM_ERR = -901,		//Memory leak, failed to allocate space
    // GEN_FUC_FAIL = -902,		//Function needs to be done or not supported yet
    // GEN_ILLEGAL_ERR = -903,	//Illegal error code
    GEN_SDK_INIT_DONE = -904,
    GEN_SDK_NOT_INIT = -905,
    // GEN_OTHER_ERR = -910,		//Others error code

    DEV_NOT_FIND = -100,  // Device is not present
    // DEV_NOT_AUTHORIZE = -101,	//Device is not authenticated
    // DEV_NOT_INIT = -102,		//Device is not initialized
    DEV_NOT_OPEN = -103,      // Device is not open
    DEV_GET_IMA_FAIL = -104,  // Get image fail
    DEV_INIT_FAIL = -105,
    DEV_OPENED = -106,
    DEV_GETLIST_FAIL = -107,
    DEV_GET_DESC_FAIL = -108,
    DEV_OPEN_FAIL = -109,
    DEV_GET_IMA_TIMEOUT = -110,
    DEV_NOT_SUPPORT = -111,
    DEV_LIVE_CAPTURING = -112,
    DEV_LIVE_ENDLIVECAPTURE = -113,
    DEV_GET_HWINFO_FAIL = -114,
    DEV_SETLEDSTATUS_FAIL = -115,
    DEV_GETLEDSTATUS_FAIL = -116,
    DEV_PARAM_ERROR = -117,
    DEV_MEMORY_ALLOCATED_FAIL = -118,

    ALG_INIT_FAIL = -200,             // Init algorithm fail
    ALG_RAW_TO_BMP_FAIL = -240,       // RAW to BMP fail
    ALG_BIONE_NOT_INIT = -220,        // Algorithm not init
    ALG_EXTRACT_FEATURE_FAIL = -221,  // Extract feature fail
    ALG_GEN_TEMPLATE_FAIL = -222,     // creat template fail
    ALG_IMG_QUALITY_LOW = -211,
    TEMPLATE_STORE_FAIL = -230,
    TEMPLATE_READ_FAIL = -231,
    TEMPLATE_NOFILE_FAIL = -232,
    TEMPLATE_WRITE_FAIL = -233,
    NO_MORE_ID = -234,
    IDENTIFY_FAIL = -235,
};
}